package com.google.client;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Product implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 7291710846511839575L;

	public Product(){};
	public Product(String name, double price, int discount, String img,
			String description) {
		this.name = name;
		this.price = price;
		this.discount = discount;
		this.img = img;
		this.description = description;
	}

	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private long pid;
	
	@Persistent
	private String name;
	
	@Persistent
	private double price;
	
	@Persistent
	private int discount;
	
	@Persistent
	private String img;
	
	@Persistent
	private String description;

	public long getPid() {
		return pid;
	}

	public void setPid(long pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getDiscount() {
		return discount;
	}

	public void setDiscount(int discount) {
		this.discount = discount;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}